<?php
/**
 * 链接关联模型层
 * 
 * @copyright 	Copyright (c) 2011 thinkapk.com All rights reserved.
 * @package 	ThinkAPK_Model
 * @link 		http://www.thinkapk.com/
 * @author 		richie <richbossman@163.com>
 * @version 	$Id: RelationTextModel.class.php 7420 2011-05-08 09:48:38Z richie $
 * 
 */
class RelationTextModel extends CommonModel {
	
	/**
	 * 取得指定类型的列表
	 *
	 * @param string $type
	 * @param int $pid
	 * @return array
	 */
	function get($type='', $pid=0){
		$row = $this->field('id,title_prefix,title,link,sort_order')->where(array('type'=>$type, 'pid'=>$pid))->order('sort_order ASC')->findAll();
		return $row;
	}
}
?>